home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / clipper / ks94an.zip / CHECKDRV.HDR < prev    next >
Text File  |  1994-04-25  |  980b  |  47 lines

  1. /******************************************************************************
  2.                  The Klipper Library, for CA-Clipper 5.x
  3.         Copyright (c), 1994, Wallace Information Systems Engineering
  4.  
  5. FUNCTION:
  6.  
  7. _Check_Drive( cDrive ) --> lDriveReady
  8.  
  9. PARAMETERS:
  10.  
  11. cDrive : Drive to Check
  12.  
  13. SHORT:
  14.  
  15. Check if Drive is available for READ/WRITE.
  16.  
  17. DESCRIPTION:
  18.  
  19. _Check_Drive() checks to see if the specified drive is available and
  20. writable.
  21.  
  22.  
  23. Return Values:
  24.  
  25. 0 - Disk is available for R/W
  26. 1 - Disk is unavailable for R/W
  27.  
  28. _Check_Drive() will ignore any colon in the drive specification.
  29.  
  30. NOTE:
  31.  
  32. CheckDrive() uses the Clipper !/RUN command.
  33.  
  34. EXAMPLE:
  35.  
  36. lIsDriveA := _Check_Drive('A')
  37.  
  38. Result: If Drive A is avaliable then _Check_Drive() will return TRUE,
  39. else, FALSE.
  40.  
  41.  
  42. lIsDriveA = _Check_Drive('A:')
  43.  
  44. Result: Same as above.  Colon is ignored if passed.
  45.  
  46. ******************************************************************************/
  47.